package com.aiju.common.event;


import com.aiju.support.lifecycle.Lifecycle;

import de.greenrobot.event.EventBus;

public class EventCenter {
	private static final EventBus instance = new EventBus();

	private EventCenter() {
	}

	public static EventBusHandler bindContainerAndHandler(Lifecycle container, EventBusHandler handler) {
		container.addListener(handler);
		return handler;
	}

	public static final EventBus getInstance() {
		return instance;
	}
}
